using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class OpenBottleRequest : GeneratedMessageLite<OpenBottleRequest, OpenBottleRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<OpenBottleRequest, OpenBottleRequest.Builder>
		{
			private bool resultIsReadOnly;
			private OpenBottleRequest result;
			protected override OpenBottleRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override OpenBottleRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override OpenBottleRequest DefaultInstanceForType
			{
				get
				{
					return OpenBottleRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string BottleInfo
			{
				get
				{
					return this.result.BottleInfo;
				}
				set
				{
					this.SetBottleInfo(value);
				}
			}
			public ContentInfo BigContentInfo
			{
				get
				{
					return this.result.BigContentInfo;
				}
				set
				{
					this.SetBigContentInfo(value);
				}
			}
			public ContentInfo SmallContentInfo
			{
				get
				{
					return this.result.SmallContentInfo;
				}
				set
				{
					this.SetSmallContentInfo(value);
				}
			}
			public int MsgType
			{
				get
				{
					return this.result.MsgType;
				}
				set
				{
					this.SetMsgType(value);
				}
			}
			public Builder()
			{
				this.result = OpenBottleRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(OpenBottleRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private OpenBottleRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					OpenBottleRequest other = this.result;
					this.result = new OpenBottleRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override OpenBottleRequest.Builder Clear()
			{
				this.result = OpenBottleRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override OpenBottleRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new OpenBottleRequest.Builder(this.result);
				}
				return new OpenBottleRequest.Builder().MergeFrom(this.result);
			}
			public override OpenBottleRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override OpenBottleRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is OpenBottleRequest)
				{
					return this.MergeFrom((OpenBottleRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override OpenBottleRequest.Builder MergeFrom(OpenBottleRequest other)
			{
				return this;
			}
			public override OpenBottleRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override OpenBottleRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(OpenBottleRequest._openBottleRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = OpenBottleRequest._openBottleRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasBottleInfo = input.ReadString(ref this.result.bottleInfo_);
							continue;
						}
					}
					else
					{
						if (num3 == 26u)
						{
							ContentInfo.Builder builder2 = ContentInfo.CreateBuilder();
							if (this.result.hasBigContentInfo)
							{
								builder2.MergeFrom(this.BigContentInfo);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.BigContentInfo = builder2.BuildPartial();
							continue;
						}
						if (num3 == 34u)
						{
							ContentInfo.Builder builder3 = ContentInfo.CreateBuilder();
							if (this.result.hasSmallContentInfo)
							{
								builder3.MergeFrom(this.SmallContentInfo);
							}
							input.ReadMessage(builder3, extensionRegistry);
							this.SmallContentInfo = builder3.BuildPartial();
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasMsgType = input.ReadInt32(ref this.result.msgType_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public OpenBottleRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public OpenBottleRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public OpenBottleRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public OpenBottleRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public OpenBottleRequest.Builder SetBottleInfo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBottleInfo = true;
				this.result.bottleInfo_ = value;
				return this;
			}
			public OpenBottleRequest.Builder ClearBottleInfo()
			{
				this.PrepareBuilder();
				this.result.hasBottleInfo = false;
				this.result.bottleInfo_ = "";
				return this;
			}
			public OpenBottleRequest.Builder SetBigContentInfo(ContentInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBigContentInfo = true;
				this.result.bigContentInfo_ = value;
				return this;
			}
			public OpenBottleRequest.Builder SetBigContentInfo(ContentInfo.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBigContentInfo = true;
				this.result.bigContentInfo_ = builderForValue.Build();
				return this;
			}
			public OpenBottleRequest.Builder MergeBigContentInfo(ContentInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBigContentInfo && this.result.bigContentInfo_ != ContentInfo.DefaultInstance)
				{
					this.result.bigContentInfo_ = ContentInfo.CreateBuilder(this.result.bigContentInfo_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.bigContentInfo_ = value;
				}
				this.result.hasBigContentInfo = true;
				return this;
			}
			public OpenBottleRequest.Builder ClearBigContentInfo()
			{
				this.PrepareBuilder();
				this.result.hasBigContentInfo = false;
				this.result.bigContentInfo_ = null;
				return this;
			}
			public OpenBottleRequest.Builder SetSmallContentInfo(ContentInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSmallContentInfo = true;
				this.result.smallContentInfo_ = value;
				return this;
			}
			public OpenBottleRequest.Builder SetSmallContentInfo(ContentInfo.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasSmallContentInfo = true;
				this.result.smallContentInfo_ = builderForValue.Build();
				return this;
			}
			public OpenBottleRequest.Builder MergeSmallContentInfo(ContentInfo value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasSmallContentInfo && this.result.smallContentInfo_ != ContentInfo.DefaultInstance)
				{
					this.result.smallContentInfo_ = ContentInfo.CreateBuilder(this.result.smallContentInfo_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.smallContentInfo_ = value;
				}
				this.result.hasSmallContentInfo = true;
				return this;
			}
			public OpenBottleRequest.Builder ClearSmallContentInfo()
			{
				this.PrepareBuilder();
				this.result.hasSmallContentInfo = false;
				this.result.smallContentInfo_ = null;
				return this;
			}
			public OpenBottleRequest.Builder SetMsgType(int value)
			{
				this.PrepareBuilder();
				this.result.hasMsgType = true;
				this.result.msgType_ = value;
				return this;
			}
			public OpenBottleRequest.Builder ClearMsgType()
			{
				this.PrepareBuilder();
				this.result.hasMsgType = false;
				this.result.msgType_ = 0;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int BottleInfoFieldNumber = 2;
		public const int BigContentInfoFieldNumber = 3;
		public const int SmallContentInfoFieldNumber = 4;
		public const int MsgTypeFieldNumber = 5;
		private static readonly OpenBottleRequest defaultInstance;
		private static readonly string[] _openBottleRequestFieldNames;
		private static readonly uint[] _openBottleRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasBottleInfo;
		private string bottleInfo_ = "";
		private bool hasBigContentInfo;
		private ContentInfo bigContentInfo_;
		private bool hasSmallContentInfo;
		private ContentInfo smallContentInfo_;
		private bool hasMsgType;
		private int msgType_;
		private int memoizedSerializedSize = -1;
		public static OpenBottleRequest DefaultInstance
		{
			get
			{
				return OpenBottleRequest.defaultInstance;
			}
		}
		public override OpenBottleRequest DefaultInstanceForType
		{
			get
			{
				return OpenBottleRequest.DefaultInstance;
			}
		}
		protected override OpenBottleRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string BottleInfo
		{
			get
			{
				return this.bottleInfo_;
			}
		}
		public ContentInfo BigContentInfo
		{
			get
			{
				return this.bigContentInfo_ ?? ContentInfo.DefaultInstance;
			}
		}
		public ContentInfo SmallContentInfo
		{
			get
			{
				return this.smallContentInfo_ ?? ContentInfo.DefaultInstance;
			}
		}
		public int MsgType
		{
			get
			{
				return this.msgType_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasBigContentInfo && this.hasSmallContentInfo && this.hasMsgType && this.BaseRequest.IsInitialized && this.BigContentInfo.IsInitialized && this.SmallContentInfo.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasBottleInfo)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.BottleInfo);
				}
				if (this.hasBigContentInfo)
				{
					num += CodedOutputStream.ComputeMessageSize(3, this.BigContentInfo);
				}
				if (this.hasSmallContentInfo)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.SmallContentInfo);
				}
				if (this.hasMsgType)
				{
					num += CodedOutputStream.ComputeInt32Size(5, this.MsgType);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private OpenBottleRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] openBottleRequestFieldNames = OpenBottleRequest._openBottleRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, openBottleRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasBottleInfo)
			{
				output.WriteString(2, openBottleRequestFieldNames[2], this.BottleInfo);
			}
			if (this.hasBigContentInfo)
			{
				output.WriteMessage(3, openBottleRequestFieldNames[1], this.BigContentInfo);
			}
			if (this.hasSmallContentInfo)
			{
				output.WriteMessage(4, openBottleRequestFieldNames[4], this.SmallContentInfo);
			}
			if (this.hasMsgType)
			{
				output.WriteInt32(5, openBottleRequestFieldNames[3], this.MsgType);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasBottleInfo)
			{
				num ^= this.bottleInfo_.GetHashCode();
			}
			if (this.hasBigContentInfo)
			{
				num ^= this.bigContentInfo_.GetHashCode();
			}
			if (this.hasSmallContentInfo)
			{
				num ^= this.smallContentInfo_.GetHashCode();
			}
			if (this.hasMsgType)
			{
				num ^= this.msgType_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			OpenBottleRequest openBottleRequest = value as OpenBottleRequest;
			return openBottleRequest != null && (this.hasBaseRequest == openBottleRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(openBottleRequest.baseRequest_))) && (this.hasBottleInfo == openBottleRequest.hasBottleInfo && (!this.hasBottleInfo || this.bottleInfo_.Equals(openBottleRequest.bottleInfo_))) && (this.hasBigContentInfo == openBottleRequest.hasBigContentInfo && (!this.hasBigContentInfo || this.bigContentInfo_.Equals(openBottleRequest.bigContentInfo_))) && (this.hasSmallContentInfo == openBottleRequest.hasSmallContentInfo && (!this.hasSmallContentInfo || this.smallContentInfo_.Equals(openBottleRequest.smallContentInfo_))) && (this.hasMsgType == openBottleRequest.hasMsgType && (!this.hasMsgType || this.msgType_.Equals(openBottleRequest.msgType_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<OpenBottleRequest, OpenBottleRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<OpenBottleRequest, OpenBottleRequest.Builder>.PrintField("BottleInfo", this.hasBottleInfo, this.bottleInfo_, writer);
			GeneratedMessageLite<OpenBottleRequest, OpenBottleRequest.Builder>.PrintField("BigContentInfo", this.hasBigContentInfo, this.bigContentInfo_, writer);
			GeneratedMessageLite<OpenBottleRequest, OpenBottleRequest.Builder>.PrintField("SmallContentInfo", this.hasSmallContentInfo, this.smallContentInfo_, writer);
			GeneratedMessageLite<OpenBottleRequest, OpenBottleRequest.Builder>.PrintField("MsgType", this.hasMsgType, this.msgType_, writer);
		}
		public static OpenBottleRequest ParseFrom(byte[] data)
		{
			return OpenBottleRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private OpenBottleRequest MakeReadOnly()
		{
			return this;
		}
		public static OpenBottleRequest.Builder CreateBuilder()
		{
			return new OpenBottleRequest.Builder();
		}
		public override OpenBottleRequest.Builder ToBuilder()
		{
			return OpenBottleRequest.CreateBuilder(this);
		}
		public override OpenBottleRequest.Builder CreateBuilderForType()
		{
			return new OpenBottleRequest.Builder();
		}
		public static OpenBottleRequest.Builder CreateBuilder(OpenBottleRequest prototype)
		{
			return new OpenBottleRequest.Builder(prototype);
		}
		static OpenBottleRequest()
		{
			OpenBottleRequest.defaultInstance = new OpenBottleRequest().MakeReadOnly();
			OpenBottleRequest._openBottleRequestFieldNames = new string[]
			{
				"BaseRequest",
				"BigContentInfo",
				"BottleInfo",
				"MsgType",
				"SmallContentInfo"
			};
			OpenBottleRequest._openBottleRequestFieldTags = new uint[]
			{
				10u,
				26u,
				18u,
				40u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.OpenBottleRequest.Descriptor, null);
		}
	}
}
